window.onload = function () {
    console.log("onload")
    //<iframe frameborder="0" src="https://v.qq.com/txp/iframe/player.html?vid=u3246n4ftnu" allowFullScreen="true"></iframe>
    document.querySelectorAll('.videoPlayerWrap').forEach(ele => {
        let oldEle = ele.querySelector("div")
        const id = ele.querySelector('.videoPlayer > div > div')["id"]
        const height = ele.querySelector(".videoPlayer")["style"]["height"]
        if (id) {
            let div = document.createElement("div");
            div.style = `height:${height};`
            div.innerHTML = `<iframe frameborder="0" height="100%" width="100%" src="https://v.qq.com/txp/iframe/player.html?vid=${id.substr(1,id.length)}" allowFullScreen="true"></iframe>`
            ele.appendChild(div)
        }
        ele.removeChild(oldEle)

    })
}